<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.java.doMain.user" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
	user user = (user) session.getAttribute("user");
	String username = "";
	double balance = 0;
	if (user != null) {
		username = user.getUsername();
		balance = user.getBalance();
	}else {
		request.getRequestDispatcher(request.getContextPath() + "/client/login.jsp").forward(request,response);;
	}
%>
<html>
<head>
	<title>电子书城</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/client/css/main.css" type="text/css" />
	<script type="text/javascript">
	//退出确认框
	// function confirm_logout() {
	//     var msg = "您确定要退出登录吗？";
	//     if (confirm(msg)==true){
	//     return true;
	//     }else{
	//     return false;
	//     }
	// }
	</script>
</head>
<body class="main">
	<jsp:include page="head.jsp" />
	<jsp:include page="menu_search.jsp" />
	<div id="divpagecontent">
		<table width="100%" border="0" cellspacing="0">
			<tr>
				<td width="25%">
					<table width="100%" border="0" cellspacing="0" style="margin-top:30px">
						<tr>
							<td class="listtitle">我的帐户</td>
						</tr>
						<%--<tr>--%>
							<%--<td class="listtd">--%>
								<%--<img src="${pageContext.request.contextPath }/client/images/icon1.png" width="15" height="10" />--%>
								<%--&nbsp;&nbsp;&nbsp;&nbsp; --%>
								<%--<a href="${pageContext.request.contextPath }/client/modifyuserinfo.jsp">用户信息修改</a>--%>
							<%--</td>--%>
						<%--</tr>--%>
						<%--<tr>--%>
							<%--<td class="listtd">--%>
								<%--<img src="${pageContext.request.contextPath }/client/images/icon2.png" width="15" height="10" />--%>
								<%--&nbsp;&nbsp;&nbsp;&nbsp; --%>
								<%--<a href="${pageContext.request.contextPath}/findOrderByUser">订单查询</a>--%>
							<%--</td>--%>
						<%--</tr>--%>
						<tr>
							<td class="listtd">
								<img src="${pageContext.request.contextPath }/client/images/icon3.png" width="15" height="10" />
								&nbsp;&nbsp;&nbsp;&nbsp; 
								<a href="javascript:if(confirm('确定要退出登录吗？'))window.location.href='/client/login.jsp'">用户退出</a>
							</td>
						</tr>
					</table>
				</td>
				<td>
					<div style="text-align:right; margin:5px 10px 5px 0px">
						<a href="${pageContext.request.contextPath }/index.jsp">首页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
						我的帐户&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;欢迎
					</div>
					<table cellspacing="0" class="infocontent" style="background: none" border="0">
						<img src="${pageContext.request.contextPath }/client/images/myad.jpg" width="631" height="436" style="position: absolute;z-index: -1;"/>
						<tr>
							<td style="padding:20px" border="none">
								<font size="5">用户账号：</font>
							</td>
                            <td style="padding:20px">
                                <font size="5"><%=username%></font>
                            </td>
						</tr>
                        <tr>
                            <td style="padding:20px">
                                <font size="5">余额：</font>
                            </td>
                            <td style="padding:20px">
                                <font size="5"> <%=balance%></font>
                            </td>
                        </tr>
					</table>
				</td>
			</tr>
		</table>dd
	</div>
	<%--<jsp:include page="foot.jsp" />--%>
</body>
</html>
